<template>
  {{ $attrs.user }}
  <el-table :data="data" style="width: 100%">
    <el-table-column prop="title" label="标题" width="180" />
    <el-table-column prop="count" label="访问量" width="180" />
    <el-table-column label="操作">
      <template #default="scope">
        <div style="display: flex; align-items: center">
          <el-icon><timer /></el-icon>
          <span style="margin-left: 10px">{{ scope.row.date }}</span>
        </div>
      </template>
    </el-table-column>
  </el-table>
</template>

<script setup lang="ts">
import { ref } from "vue";
const props = defineProps({
  user: Object,
});
const data = ref<any>([
  {
    title: "tt",
    count: 10,
  },
]);
</script>

<style scoped></style>
